package lab02.Test37;

public class Undergrade extends Student {
    public Undergrade(String name, double c1, double c2, double c3) {
        super(name, c1, c2, c3);
    }

    @Override
    public String getName() {
        return super.getName();
    }
public void put1(){
        if (getAverage()>=60){
            System.out.println("本科生"  +getName()+  "三科平均分："   +getAverage()+  "得到毕业证");
        }else {
            System.out.println("本科生"  +getName()+   "三科平均分："  +getAverage()+   "得不到毕业证");
        }
}


}
